package com.example.datachangerecord.record.annotation;




import com.example.datachangerecord.record.emun.LogicName;
import com.example.datachangerecord.record.emun.RecordTable;
import com.example.datachangerecord.record.emun.SelectType;
import com.example.datachangerecord.record.emun.TableCol;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标记 记录操作
 * 用在方法上
 *
 * @author xyj
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Record {


    /**
     * 备注信息
     */
    String remark() default "";

    /**
     * 操作表名,优先级比recordTable高
     */
    String tableName() default "";

    /**
     * 表的描述,优先级比recordTable高
     */
    String des() default "";


    RecordTable value();

    SelectType selectType() default SelectType.LOGIC;

    LogicName logicName() default LogicName.DELETE_FLAG;

    /**
     * 关注字段。默认不关注字段
     */
    TableCol[] concernFields() default {};

}
